package com.llc.mall.user.domain.user.objectvalue;

public record UserProfile(String nickName, String pic, String password) {
    public static class Builder {
        private String nickName;
        private String pic;
        private String password;

        public Builder nickName(String nickName) {
            this.nickName = nickName;
            return this;
        }

        public Builder pic(String pic) {
            this.pic = pic;
            return this;
        }

        public Builder password(String password) {
            this.password = password;
            return this;
        }

        public UserProfile build() {
            return new UserProfile(nickName, pic, password);
        }
    }

    public static Builder builder() {
        return new Builder();
    }
}
